package com.jdd.modules.deviceConf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 设备配置表
 * </p>
 *
 * @author zly
 * @since 2022-03-24
 */
@ApiModel(value="TDeviceConf对象", description="设备配置表")
@Data
public class TDeviceConf implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer year;

    private Integer month;

    private Integer day;

    private Integer hour;

    private Integer minute;

    private Integer second;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态1-正常2-停用")
    private Integer status;

    @ApiModelProperty(value = "1-时间段配置2-节假日配置")
    private Integer type;

//    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private String startTime;

    private String endTime;

    @ApiModelProperty(value = "配置值")
    private String configValue;

    @ApiModelProperty(value = "设备id")
    private String deviceId;

    private String deviceName;

}
